package project.code.common;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class Principal {

	private static final String LOG4J = "log4j.properties";
	
	private static final Logger  logger  = Logger.getLogger(Principal.class);
	
	static SimpleDateFormat format = new SimpleDateFormat ("dd/MM/yyyy hh:mm:ss");
	
	public static void main(String[] args) {
		
		PropertyConfigurator.configure(LOG4J);
		logger.info("**********************************************************************************************");
		Date date=new Date();
		
		logger.info("Comienza "+format.format(date));
		
		new Pruebas();
		
		Date datefinal=new Date();

		logger.info("********************************************");
		logger.info("Termino ejecucion "+format.format(datefinal));
		logger.info("**********************************************************************************************");

		logger.info("**************esperando por comandos******************************");
		System.exit(0);
	}
	
	

}
